package com.chenxingnet.dao;

import com.chenxingnet.dto.Drivers;
import com.chenxingnet.dto.DriversExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface DriversMapper {
    int countByExample(DriversExample example);

    int deleteByExample(DriversExample example);

    int deleteByPrimaryKey(Integer did);

    int insert(Drivers record);

    int insertSelective(Drivers record);

    List<Drivers> selectByExample(DriversExample example);

    Drivers selectByPrimaryKey(Integer did);

    int updateByExampleSelective(@Param("record") Drivers record, @Param("example") DriversExample example);

    int updateByExample(@Param("record") Drivers record, @Param("example") DriversExample example);

    int updateByPrimaryKeySelective(Drivers record);

    int updateByPrimaryKey(Drivers record);
    
    long getCount();
    
    int updateById(@Param("did")Integer did);
    
    List<Drivers> selectAllByCount(@Param("startPos")int startPos,@Param("pageSize")int pageSize);

	List<Drivers> selectAll();
	
	List<Drivers> selectByName(@Param("name")String name);

}